﻿using System;
using UnityEngine;
using UnityEngine.Rendering;

// Token: 0x02000284 RID: 644
public class MapShadowControl : MonoBehaviour
{
	// Token: 0x060010B7 RID: 4279 RVA: 0x0006A49C File Offset: 0x0006869C
	private void Start()
	{
		Renderer[] componentsInChildren = base.GetComponentsInChildren<Renderer>();
		foreach (Renderer renderer in componentsInChildren)
		{
			if (renderer.shadowCastingMode == ShadowCastingMode.On || renderer.shadowCastingMode == ShadowCastingMode.TwoSided)
			{
				renderer.shadowCastingMode = ShadowCastingMode.Off;
			}
			else if (renderer.shadowCastingMode == ShadowCastingMode.ShadowsOnly)
			{
				renderer.enabled = false;
			}
		}
		Terrain[] componentsInChildren2 = base.GetComponentsInChildren<Terrain>();
		foreach (Terrain terrain in componentsInChildren2)
		{
		}
	}

	// Token: 0x060010B8 RID: 4280 RVA: 0x0006A530 File Offset: 0x00068730
	private void Update()
	{
	}
}
